﻿using System;
using ECBS_Backend.model;
using Microsoft.EntityFrameworkCore;

namespace ECBS_Backend.dao
{
    public class ECBSContext : DbContext
    {
        public ECBSContext(DbContextOptions<ECBSContext> options) : base(options)
        {
            this.Database.EnsureCreated();
        }

        public DbSet<Admin> Admins { get; set; }
        public DbSet<Student> Students { get; set; }
        public DbSet<School> Schools { get; set; }
        public DbSet<Enterprise> Enterprises { get; set; }
        public DbSet<EnrollmentClaim> EnrollmentClaims { get; set; }
        public DbSet<EnrollmentCredential> EnrollmentCredentials { get; set; }
        public DbSet<GradeClaim> GradeClaims { get; set; }
        public DbSet<GradeCredential> GradeCredentials { get; set; }
    }
}
